﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SalePartial.BLL;
using SalePartial.Model;

public partial class ShowNews : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(Request.QueryString["id"]))
        {
            Response.Write("<Script language='javascript'>alert('该新闻不存在或已被删除');</script>");
            return;
        }
        Guid newsId = new Guid(Request.QueryString["id"]);
        XPNews n = new XPNews();
        XPNewsInfo news ;
        news = n.GetXPNews(newsId);
        this.litTitle.Text = news.Title;
        this.litCreateTime.Text = news.CreateTime.ToShortDateString();
        this.litContent.Text = news.Content;
    }
}

